home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / w00os / shared / src / keyboard.asm < prev    next >
Encoding:
Assembly Source File  |  1998-12-31  |  399 b   |  15 lines

  1. ;------------------------------------------------------
  2. ; wait for the user to enter a key
  3. ;------------------------------------------------------
  4.  
  5. getkey:
  6.     push ax        ; save the old ax value
  7.  
  8.     mov si,keymsg    ; mov the message into ds:si
  9.     call printmsg    ; print the "hit any key" message
  10.  
  11.     xor ax,ax    ; clear/empty ax
  12.     int 16h        ; keyboard interrupt
  13.  
  14.     pop ax        ; restore the old ax value
  15.     ret